﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Base.Entity
{
    /// <summary>
    /// 状态机变更消息
    /// </summary>
    public class StateMachineChangedMsg
    {
        /// <summary>
        /// CDO标识
        /// </summary>
        public string CDOCode { get; set; }
        /// <summary>
        /// 单据ID
        /// </summary>
        public string BillID { get; set; }
        /// <summary>
        /// 状态机ID
        /// </summary>
        public string StateMachineID { get; set; }
        /// <summary>
        /// 状态机Code
        /// </summary>
        public string StateMachineCode { get; set; }
        /// <summary>
        /// 列标识
        /// </summary>
        public string ColKey { get; set; }
        /// <summary>
        /// 列标识
        /// </summary>
        public string ColName { get; set; }
        /// <summary>
        /// 事件Key
        /// </summary>
        public string EventKey { get; set; }
        /// <summary>
        /// 事件Key
        /// </summary>
        public string EventName { get; set; }
        /// <summary>
        /// 源状态
        /// </summary>
        public int? FromState { get; set; }
        /// <summary>
        /// 源状态
        /// </summary>
        public string FromStateName { get; set; }
        /// <summary>
        /// 目标状态
        /// </summary>
        public int ToState { get; set; }
        /// <summary>
        /// 目标状态
        /// </summary>
        public string ToStateName { get; set; }
        /// <summary>
        /// 扩展参数
        /// </summary>
        public Dictionary<string, object> ExtParams { get; set; }
        /// <summary>
        /// 单据内容
        /// </summary>
        public TRecord Record { get; set; }
    }
}
